<tr class="detail-entity-header-row">

  <% info.each do |key,value| %>


  <th><%=link_to value, {:action => "index", :controller => method_path, :page => params[:page], :column_sorts => key, :order => ((params[:order].nil? or params[:order] == "ASC") ? "DESC" : "ASC")}, :class => "sorting", :title => "Click here to sort by " + value.downcase + "" %>
    <% if params[:column_sorts] == key and params[:order] == "ASC" %>
        <span class="ui-icon-carat-1-n ui-icon"></span>
    <% elsif params[:column_sorts] == key and params[:order] == "DESC" %>
        <span class="ui-icon-carat-1-s ui-icon"></span>
    <% end %>
  </th>

  <% end %>
  <th colspan="3">Actions</th>

</tr>